/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function Appstore(direction, left_time, mostLeft) {
    if (direction === "right" && left_time === 1) {


        Prompt("已经是第一页", 1000);
        return;
    }

    if (direction === "left" && left_time >= mostLeft) {
        Prompt("已经是最后一页", 1000);
        return;
    }

    if (direction === "right" && left_time <= 1) {
        Prompt("已经是第一页", 1000);
        return;
    }

    if (direction === "left") {
        LeftTime++;
        $(".one ul").each(function(i) {
            var left = d3.select(this).style("left");
            left = +left.substr(0, left.length - 2);
            $(this).animate({left: (left - width) + "px"}, 250, function() {

            });
        });
    }
    else if (direction === "right") {
        LeftTime--;
        $(".one ul").each(function(i) {
            var left = d3.select(this).style("left");
            left = +left.substr(0, left.length - 2);
            $(this).animate({left: (left + width) + "px"}, 250, function() {

            });
        });
    }

}
;